Package com.streamwide.smartms.lib.core.api.hardware.headset

Types

Link copied to clipboard
interface IHeadSetListener

IHeadSetListener

Description :

This interface represent the API for all actions/event related to Headset.

This interface is used with the STWHeadSetManager in order to delegate event linked to Headset.

Example of use :

  • Implementation :
    
    private IHeadSetListener mHeadSetListener = new IHeadSetListener() {
    
    public void onHeadSetPlugged() {
    
    //code
    
    }
    public void onHeadSetUnplugged() {
    
    // code
    
    }
    };
    
  • Registration :
    
            STWHeadSetManager.getInstance().registerForHeadsetManagerEvents(mHeadSetListener);
            
Link copied to clipboard
open class STWHeadSetManager

STWHeadSetManager

Description :

This class represent the API for all actions/event related to Headset.